//
//  UIScreen+YMAdditions.swift
//  YMToolKit
//
//  Created by YDWY on 2017/4/20.
//  Copyright © 2017年 YDWY. All rights reserved.
//

import Foundation
import UIKit

extension UIScreen {


    
    /// 返回设备屏幕的宽度
    ///
    /// - Returns: 设备屏幕的宽度
    class func ym_screenWidth() -> CGFloat{
        return UIScreen.main.bounds.size.width
        
    }
    
    class func ym_screenHeight() -> CGFloat{
        return UIScreen.main.bounds.size.height
        
    }
    
    
    /// 屏幕分辨率
    ///
    /// - Returns: 屏幕的分辨率
    class func ym_screenScale() -> CGFloat{
        return UIScreen.main.scale
        
    }
    
    
}
